-- GENERATED SPELL FOR [Dreadmaul Ogre Mage] --


function spell0_5975(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5975', 30324, 1)
end

function spell1_5975(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5975', 3000, 1)
end

function Sorts_5975(pUnit, Event)
local choix_sorts_5975 = math.random(0, 1)
if choix_sorts_5975 == 0 then
pUnit:RegisterEvent('spell0_5975', 1, 1)
end
if choix_sorts_5975 == 1 then
pUnit:RegisterEvent('spell1_5975', 1, 1)
end
end

function mob5975_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5975', math.random(1500, 3000), 1)
end

function mob5975_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5975_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5975_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5975, 1, 'mob5975_Action')
RegisterUnitEvent(5975, 2, 'mob5975_Leave')
RegisterUnitEvent(5975, 3, 'mob5975_Kill')
RegisterUnitEvent(5975, 4, 'mob5975_Die')
